x86/EFI: avoid IOMMU faults on [_end,__2M_rwdata_end)
authorJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2017 06:32:22 +0000 (08:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2017 06:32:22 +0000 (08:32 +0200)
commit4ec1cb0b01332c0bbf0e4d232c1e33390ae1a95c
treea8c3ec45790f0f20785c4dd2883ba7bfe4bb6e2e
parent093a1f1b1c894e397f8fe82a1d69d486e4ade33f
x86/EFI: avoid IOMMU faults on [_end,__2M_rwdata_end)

Commit c9a4a1c419 ("x86/layout: Correct Xen's idea of its own memory
layout") didn't go far enough with the conversion, causing IOMMU faults
when memory from that range was handed to a domain. We must not make
this memory available for allocation (the change is benign to xen.gz at
this point in time).

Note that the change to tboot_shutdown() is fixing another issue at
once: As it looks, the function so far skipped all memory below the Xen
image.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: d522571a408a7dd21a06705f6dd51cdafd2db4fc
master date: 2017-03-20 09:25:36 +0100
xen/arch/x86/setup.c
xen/arch/x86/tboot.c
xen/arch/x86/xen.lds.S
xen/include/asm-x86/mm.h